package com.tzxscu.hosdroolsnew.webapi;


import com.alibaba.fastjson.JSONObject;
import com.tzxscu.hosdroolsnew.beans.PatListInfo;
import com.tzxscu.hosdroolsnew.drools.DroolsApi;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Controller
public class WebInterFace {

    @RequestMapping(value = "/index",method = RequestMethod.POST)
    @ResponseBody
    @CrossOrigin
    public static String droolsweb(@RequestBody PatListInfo patListInfos) throws Exception{
        DroolsApi droolsApi = new DroolsApi();
        String ret  = droolsApi.getdrool(patListInfos);
        return ret;
    }
}
